Allow equal user-defined hash table tests with different names
authorMattias Engdegård <mattiase@acm.org>
Wed, 31 Jan 2024 11:21:12 +0000 (12:21 +0100)
committerMattias Engdegård <mattiase@acm.org>
Wed, 31 Jan 2024 11:48:48 +0000 (12:48 +0100)
commit7e85311a9113a4720ec9d7b06188646fc7bdae0b
tree119807ece0bb2bf2cac2fedce27c331a27092da8
parent5f24c9a4c82f7106e22cac8a5201db8307239837
Allow equal user-defined hash table tests with different names

Hash tables using different user-defined tests defined identically
sometimes ended up using the wrong test (bug#68668).

* src/fns.c (get_hash_table_user_test): Take test name into account
when matching the test object.
* test/src/fns-tests.el (fns--define-hash-table-test): New.
src/fns.c
test/src/fns-tests.el